<!--{assign var="menu_id" value="message"}-->
<!--{include file="<!--{$oetplpath}-->block_header.tpl"}--> 
<!--{include file="<!--{$oetplpath}-->block_top.tpl"}-->
<!--{include file="<!--{$oetplpath}-->block_banner.tpl"}-->
<div class="oe_inmain"> 
  <!--{include file="<!--{$oetplpath}-->block_left.tpl"}-->
  <div class="right">
    <div class="oe_ufriend">
      <div class="oe_unav"> 系统消息 </div>

      <div class="oe_utitle">
        <ul>
          <li><a href="<!--{$oefile}-->&c=msgcontact">私信</a></li>
		  <li><a href="<!--{$oefile}-->&c=msg" class="current">消息</a></li>
        </ul>
        <div class="clear"></div>
      </div>

      <div class="oe_msg_list">
        <div class="total_tips">
          <p class="text">
            共收到 <b><!--{$total}--></b> 条系统消息
          </p>
          <div class="clear"></div>
        </div>
		<!--{if empty($msg)}-->
		<div class="oe_nodata">
		  <p class="p_1"><img src="<!--{$userskin}-->images/nodata.jpg" /></p>
		  <p class="p_2">没有符合条件的信息！</p>
		</div>
		<!--{else}-->
        <ul>
          <!--{foreach $msg as $volist}-->
          <li class="<!--{if $volist.readflag == '1'}-->readed<!--{/if}-->">
            <h3><!--{$volist.title}-->  <span><!--{$volist.sendtime|date_format:"%Y/%m/%d %H:%M:%S"}--></span></h3>
            <p><!--{$volist.content}--></p>
            <label class="more" f="but_readmore" data-id="<!--{$volist.id}-->">展开更多 <i></i></label>
          </li>
          <!--{/foreach}-->
        </ul>
        <!--{/if}-->
		<!--{if $total > 0 && !empty($showpage)}-->
        <div class="oe_page"> <!--{$showpage}--> </div>
        <!--{/if}-->

      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>

<!--{include file="<!--{$oetplpath}-->block_footer.tpl"}-->

<script type="text/javascript">
$(document).on("click", "[f='but_readmore']", function(){
	$_id = $(this).attr("data-id");
	if ($(this).parent().hasClass("current")) {
		$(this).parent().removeClass("current");
		$(this).html("展开更多<i></i>");
	}
	else {
		$(this).parent().addClass("current");
		$(this).html("收起更多<i></i>");
	}

});
</script>
</body>
</html>